<template>
  <div class="InspectionReport-box">
    <div class="InspectionReport-top">
      <div class="InspectionReport-left">AI巡检报告</div>
      <div class="InspectionReport-Xhao" @click="addChahao"></div>
    </div>
    <div class="InspectionReport-content-box">
      <div class="content-title1">舱</div>
      <div class="content-title2">soc(%)</div>
      <div class="content-title3">运行状态</div>
      <div class="content-title4">告警</div>
      <div class="content-title5">预警</div>
    </div>
    <div class="content-item-box">
      <vue3-seamless-scroll
        :hoverStop="false"
        :singleHeight="41"
        :list="dataList"
        class="warp"
      >
        <div class="content-item" v-for="item in dataList">
          <div class="item-item1">{{ item.name }}</div>
          <div class="item-item2">{{ item.name1 }}</div>
          <div class="item-item3">{{ item.name2 }}</div>
          <div class="item-item4">{{ item.name3 }}</div>
          <div class="item-item5">{{ item.name4 }}</div>
        </div>
      </vue3-seamless-scroll>
    </div>
  </div>
</template>
<script setup>
import { ref } from "vue"
import { Vue3SeamlessScroll } from "vue3-seamless-scroll"
const dataList = ref([
  {
    name: "00#储能单元1 电池舱",
    name1: "90%",
    name2: "正常",
    name3: "否",
    name4: "否"
  },
  {
    name: "00#储能单元2 电池舱",
    name1: "90%",
    name2: "正常",
    name3: "否",
    name4: "否"
  },
  {
    name: "00#储能单元3 电池舱",
    name1: "90%",
    name2: "正常",
    name3: "否",
    name4: "否"
  },
  {
    name: "00#储能单元4 电池舱",
    name1: "90%",
    name2: "正常",
    name3: "否",
    name4: "否"
  },
  {
    name: "00#储能单元5 电池舱",
    name1: "90%",
    name2: "正常",
    name3: "否",
    name4: "否"
  },
  {
    name: "00#储能单元6 电池舱",
    name1: "90%",
    name2: "正常",
    name3: "否",
    name4: "否"
  },
  {
    name: "00#储能单元7 电池舱",
    name1: "90%",
    name2: "正常",
    name3: "否",
    name4: "否"
  },
  {
    name: "00#储能单元8 电池舱",
    name1: "90%",
    name2: "正常",
    name3: "否",
    name4: "否"
  }
])
const emit = defineEmits(["changXhaoBg"])
const addChahao = () => {
  emit("changXhaoBg")
}
</script>
<style scoped lang="less">
div::-webkit-scrollbar {
  display: none;
  overflow: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE10+ */
  &::-webkit-scrollbar {
    display: none; /* ChromeSafari */
  }
}
.InspectionReport-box {
  width: 100%;
  height: 100%;
}
.InspectionReport-top {
  width: 622px;
  height: 28px;
  // background-color: red;
  position: absolute;
  left: 56px;
  top: 39px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  .InspectionReport-left {
    margin-left: 20px;
  }
  .InspectionReport-Xhao {
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: url("@/assets/xunjian/anniu_guanbi.png") no-repeat center;
    background-size: 100% 100%;
    margin-right: 20px;
  }
}
.InspectionReport-content-box {
  width: 640px;
  height: 247px;
  // background-color: red;
  position: absolute;
  left: 40px;
  top: 86px;
  display: flex;
  font-size: 16px;
  .content-title1 {
    line-height: 50px;
    font-weight: 600;
    color: #fff;
    margin-left: 40px;
    width: 210px;
  }
  .content-title2 {
    width: 105px;
    line-height: 50px;
    font-weight: 600;
    color: #fff;
  }
  .content-title3 {
    width: 113px;
    line-height: 50px;
    font-weight: 600;
    color: #fff;
  }
  .content-title4 {
    width: 85px;
    line-height: 50px;
    font-weight: 600;
    color: #fff;
  }
  .content-title5 {
    width: 89px;
    line-height: 50px;
    font-weight: 600;
    color: #fff;
  }
}
.content-item-box {
  position: absolute;
  width: 640px;
  height: 198px;
  left: 40px;
  top: 135px;
  overflow: scroll;
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;

  .content-item {
    margin-bottom: 7px;
    width: 100%;
    height: 33px;
    // background: url("@/assets/xunjian/biaoge_xuanzhong.png") no-repeat
    //   center;
    // background-size: 100% 100%;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 12px;
    .item-item1 {
      height: 33px;
      line-height: 33px;
      width: 223px;
      margin-left: 32px;
    }
    .item-item2 {
      height: 33px;
      line-height: 33px;
      color: #42ff9d;
      width: 109px;
    }
    .item-item3 {
      height: 33px;
      line-height: 33px;
      color: #42ff9d;
      width: 104px;
    }
    .item-item4 {
      height: 33px;
      line-height: 33px;
      color: #42ff9d;
      width: 85px;
    }
    .item-item5 {
      height: 33px;
      line-height: 33px;
      color: #42ff9d;
      width: 74px;
    }
  }
  .content-item1 {
    margin-bottom: 7px;
    width: 100%;
    height: 33px;
    background: url("@/assets/xunjian/biaoge_xuanzhong.png") no-repeat center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 12px;
    .item-item1 {
      height: 33px;
      line-height: 33px;
      width: 223px;
      margin-left: 32px;
    }
    .item-item2 {
      height: 33px;
      line-height: 33px;
      color: #42ff9d;
      width: 109px;
    }
    .item-item3 {
      height: 33px;
      line-height: 33px;
      color: #42ff9d;
      width: 104px;
    }
    .item-item4 {
      height: 33px;
      line-height: 33px;
      color: #42ff9d;
      width: 85px;
    }
    .item-item5 {
      height: 33px;
      line-height: 33px;
      color: #42ff9d;
      width: 74px;
    }
  }
}
</style>
